package xyz.lisys.action;

import com.opensymphony.xwork2.ActionSupport;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;

@Controller("annotateAction")
@Scope("prototype")
@ParentPackage("struts-default")
@Namespace(value = "/annotate")
@Action(value = "execute", results = {@Result(name = "success", location = "/pages/annotate/success.jsp")})
public class AnnotateAction extends ActionSupport {

    @Action(value = "view", results = {@Result(name = "success", location = "/pages/annotate/success.jsp")})
    public String view() throws Exception {
        return SUCCESS;
    }

    @Override
    public String execute() throws Exception {
        return SUCCESS;
    }
}
